/**
 * Created by charlie on 18-1-11.
 */
import React from 'react'
import UI from '../components/pangitor'
import {connect} from 'dva-no-router'
import {bindActionCreators} from 'redux'
import {View} from 'react-native'

class Pangitor extends React.Component {
    render(){
        return(
            <UI  {...this.props} />
        )
    }
}

const actions ={
    tableLastPage:(val1,val2,val3) =>({type: 'pangitor/tableLastPage',payload:{namespace:val1,currentPage:val2,mainFunction:val3}}),
    tableNextPage:(val1,val2,val3) =>({type: 'pangitor/tableNextPage',payload:{namespace:val1,currentPage:val2,mainFunction:val3}}),
    change:(val) =>({type: 'pangitor/change',payload:val}),
    sureJump:(val1,val2,val3) =>({type: 'pangitor/sureJump',payload:{namespace:val1,jumpPage:val2,mainFunction:val3}})
};
const mapProps = ({pangitor}) =>({pangitor});
const mapActions = dispatch =>({
    ...bindActionCreators({...actions},dispatch)
});
export default connect (mapProps,mapActions)(Pangitor)